﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Runtime.Serialization;

namespace SimpleShell.Model
{
    [DataContract]
    public class Person
    {
        [DataMember]
        public string FirstName { get; set; }

        [DataMember]
        public string SecondName { get; set; }

        [DataMember]
        public int Age { get; set; }
    }

//    [DataContract]
//    public class Person : DependencyObject
//    {
//        public static readonly DependencyProperty FirstNameProperty = DependencyProperty.Register("FirstName",
//            typeof(string), typeof(Person), new PropertyMetadata(Utilities.Compatability.DP_UNSET_VALUE));

//        public static readonly DependencyProperty SecondNameProperty = DependencyProperty.Register("SecondName",
//            typeof(string), typeof(Person), new PropertyMetadata(Utilities.Compatability.DP_UNSET_VALUE));

//        public static readonly DependencyProperty AgeProperty = DependencyProperty.Register("Age",
//            typeof(int), typeof(Person), new PropertyMetadata(0));

//#region Properties

//        [DataMember]
//        public string FirstName
//        {
//            get { return Convert.ToString(GetValue(FirstNameProperty)); }
//            set { SetValue(FirstNameProperty, value); }
//        }

//        [DataMember]
//        public string SecondName
//        {
//            get { return Convert.ToString(GetValue(SecondNameProperty)); }
//            set { SetValue(SecondNameProperty, value); }
//        }

//        [DataMember]
//        public int Age
//        {
//            get { return Convert.ToInt32(GetValue(AgeProperty)); }
//            set { SetValue(AgeProperty, value); }
//        }

//#endregion

//    }
}
